<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<html>
<body>
<script language="javascript" type="text/javascript">
	
	function doSwitch(data){
		$("#form1").attr("action","sysconf.do?isopen="+data);	
		$("#form1").submit();
	}
	
</script>

<form id="form1" class="form-horizontal" action="sysconf.do" method="post">
	<div class="control-group">
		<label class="control-label" for="reason">活动场景开放 : </label>
		<div class="controls">
		<c:if test='${isopen=="open"}'> 
		  <button type="button" class="btn control btn-primary" id="open"  onclick="doSwitch('open');"> 开放   </button>
		  <button type="button" class="btn control" id="close" onclick="doSwitch('close');"> 关闭   </button>
		</c:if>
		
		<c:if test='${isopen=="close"}'> 
		  <button type="button" class="btn control" id="open"  onclick="doSwitch('open');"> 开放   </button>
		  <button type="button" class="btn control btn-primary" id="close" onclick="doSwitch('close');"> 关闭   </button>
		</c:if>
		
		</div>
	</div>
</form>
</body>
</html>